import { getCityList } from '../../services/modules/city'
import { defineStore } from 'pinia'
const useCityStore = defineStore('city', {
  state: () => {
    return {
      cityList: {},
      currentCity: {},
    }
  },
  actions: {
    async fetchCityList() {
      const res = await getCityList()
      this.cityList = res.data
    },
  },
})
export default useCityStore
